package com.wie.staffhubpro.mapper;

import com.wie.staffhubpro.domain.dto.ProjectEmpDTO;
import com.wie.staffhubpro.domain.entity.ProjectEmp;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
* @author WiedersehenM
* @description 针对表【project_emp】的数据库操作Mapper
* @createDate 2025-06-29 23:02:25
* @Entity com.wie.staffhubpro.domain.entity.ProjectEmp
*/
@Mapper
public interface ProjectEmpMapper extends BaseMapper<ProjectEmp> {

    /**
     * 从项目中删除员工
     *
     * @return
     */
    @Select("select * from project_emp where proj_id = #{projId} and emp_id = #{empId}")
    ProjectEmp delEmp(@Param("empId") Integer empId, @Param("projId") Integer projId);
}




